From 354237d99e81343b90fb80f73dfb8de50ff809db Mon Sep 17 00:00:00 2001 From: robertlipe Date: Sun, 15 Sep 2013 05:50:21 +0000 Subject: [PATCH] Correct leak in bcr that I just introduced when I partially rolled back a failed experiment in making S1 and S2 into QStrings. --- gpsbabel/bcr.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gpsbabel/bcr.cc b/gpsbabel/bcr.cc index b934bc8c4..295acbd56 100644 --- a/gpsbabel/bcr.cc +++ b/gpsbabel/bcr.cc @@ -488,6 +488,8 @@ bcr_route_header(const route_head* route) sout = QString("%1,%2,@,0").arg(s1).arg(s1); } bcr_write_line(fout, "STATION", &i, sout); + xfree(s1); + xfree(s2); } bcr_write_line(fout, "[ROUTE]", NULL, NULL); /* route section */ -- 2.30.2